package com.cskaoyan.order.dal.persistence;


import com.cskaoyan.order.dal.entitys.Order;
import com.cskaoyan.order.dto.OrderDetailInfo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface OrderMapper extends Mapper<Order> {
    Long countAll();


    List<OrderDetailInfo> queryAllOrdersByUserId(@Param("uid") long uid, @Param("size") Integer size, @Param("page") Integer page);

    Long countAllByUserId(long uid);

    void deleteOrderByOrderId(String orderId);

    void cancelOrderByOrderId(@Param("status") Integer status, @Param("orderId") String orderId);

    Integer queryStatusByOrderId(String orderId);

}